package com.chang.dp.enumns;

class ErrorCode {
    private int code;
    private String message;

    ErrorCode (int code, String message) {
        this.code = code;
        this.message = message;
    }

}

public enum  ErrorCodeEnums {
    NOT_FOUNT(new ErrorCode(404, "找不到此数据")),
    SUCCESS(new ErrorCode(200, "成功")),
    AUTH_LATE(new ErrorCode(401, "登录过期")),
    DATA_ERR(new ErrorCode(500, "操作失败"));

    ErrorCodeEnums(ErrorCode errorCode) {
    }
}
